//
// Created by francklinson on 2021/11/22 AT 0:30.
// May Saint Diana bless you!
//

#include <iostream>
#include <vector>
#include <string>

using namespace std;

class Solution {
public:
    bool checkIfPangram(string sentence) {
        vector<int> counter(26, 0);
        for (const char &x: sentence) {
            ++counter[x - 'a'];
        }
        for (int i = 0; i < 26; ++i) {
            if (counter[i] == 0)
                return false;
        }
        return true;
    }
};

int main() {
    Solution solution;
    cout << solution.checkIfPangram("thequickbrownfoxjumpsoverthelazydog") << endl;
    cout << solution.checkIfPangram("leetcode") << endl;
    return 0;
}

